#include "SMPPAdditionalStatusInfoText.hpp"

using namespace smpp::pdu;

AdditionalStatusInfoText::AdditionalStatusInfoText(
const CoctetString &nValue):
TLV(TLVtags::TAG_ADDITIONAL_STATUS_INFO_TEXT,nValue.size()),
_Value(nValue){}

AdditionalStatusInfoText::AdditionalStatusInfoText(
const AdditionalStatusInfoText &nAdditionalStatusInfoText):
TLV(nAdditionalStatusInfoText),
_Value(nAdditionalStatusInfoText.getValue()){}

bool AdditionalStatusInfoText::operator ==(
	const AdditionalStatusInfoText &nAdditionalStatusInfoText) const{
	return (TLV::operator == (nAdditionalStatusInfoText) && 
	_Value == nAdditionalStatusInfoText.getValue());
}

bool AdditionalStatusInfoText::operator !=(
	const AdditionalStatusInfoText &nAdditionalStatusInfoText) const{
	return !this->operator == (nAdditionalStatusInfoText);
}
	
AdditionalStatusInfoText &AdditionalStatusInfoText::operator = (
	const AdditionalStatusInfoText &nAdditionalStatusInfoText){
	if(*this == nAdditionalStatusInfoText)
		return *this;
	TLV::operator = (nAdditionalStatusInfoText);
	_Value = nAdditionalStatusInfoText.getValue();
	return *this;
}

void AdditionalStatusInfoText::setValue(const CoctetString &nValue){
	_Value = nValue;
}

const CoctetString &AdditionalStatusInfoText::getValue() const{
	return _Value;
}

